<?php





$redis = new \Redis();
$res = $redis->connect('106.13.63.203', 6379, 1 );

var_dump($argv);

$key = 'msg';//Channel 订阅这频道的订阅者，都能收收到消息
$value = 'hello world';
if($argv[1])
{
    $value= $argv[1];
}

$res = $redis->publish($key,$value);

?>